package com.aliang.shopping.model.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 轮播图
 * @TableName banner
 */
@TableName(value ="banner")
@Data
public class Banner implements Serializable {
    /**
     * 数据Id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 轮播图图片链接
     */
    @TableField(value = "image")
    private String image;

    /**
     * 跳转路径
     */
    @TableField(value = "to_path")
    private String toPath;

    /**
     * 所属区域数字
     */
    @TableField(value = "area_num")
    private Integer areaNum;

    /**
     * 是否是内部链接
     */
    @TableField(value = "is_inner")
    private Integer isInner;

    /**
     * 上架状态，默认下架
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}